program RLMessageService;

{#ROGEN:RLLibrary.rodl} // RemObjects: Careful, do not remove!

uses
  uROComInit,
  uROComboService,
  Forms,
  SysUtils,
  fServerDataModule in 'fServerDataModule.pas' {ServerDataModule: TDataModule},
  fServerForm in 'fServerForm.pas' {ServerForm},
  RLLibrary_Intf in 'RLLibrary_Intf.pas',
  RLLibrary_Invk in 'RLLibrary_Invk.pas',
  RLService_Impl in 'RLService_Impl.pas' {d: TRORemoteDataModule},
  OrderService_Impl in 'OrderService_Impl.pas' {OrderService: TRORemoteDataModule},
  ChatService_Impl in 'ChatService_Impl.pas' {ChatService: TRORemoteDataModule};

{$R *.res}
{$R RODLFile.res}

begin
  if ROStartService('RLMessageService', 'RLMessageService') then begin
    ROService.CreateForm(TServerDataModule, ServerDataModule);
    ROService.Run;
    Exit;
  end;

  Application.Initialize;
  Application.CreateForm(TServerDataModule, ServerDataModule);
  Application.CreateForm(TServerForm, ServerForm);
  Application.Run;
end.
